package com.example.luozizhao.eprxdemo.net.response.login;


import com.example.luozizhao.eprxdemo.net.bean.LocationStationBean;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * 车站信息
 * 
 * @author heenliang
 * @date 2016年9月5日
 * @version [版本号]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Table(name = "l_base_station")
public class StationInfo implements Serializable {

    private static final long serialVersionUID = -6916951229392284725L;

    @Column(isId = true, name = "orgId", autoGen = false)
    private Integer orgId;
    
    @Column(name = "name")
    private String name;
    
    @Column(name = "location")
    private String location;

    public StationInfo() {
    }
    
    public StationInfo(LocationStationBean bean) {
        orgId = bean.getOrgId();
        name = bean.getName();
        location = bean.getLocation();
    }

    public LocationStationBean toBean(){
        LocationStationBean bean = new LocationStationBean();
        bean.setOrgId(orgId);
        bean.setName(name);
        bean.setLocation(location);
        return bean;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "StationInfo [orgId=" + orgId + ", name=" + name + ", location=" + location + "]";
    }
}
